package com.blackbox.price.service;

import com.blackbox.price.entity.BbUser;
import com.blackbox.price.mapper.BbUserMapper;
import com.blackbox.price.mapper.common.VisionService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author: TWQ
 * @Description:
 * @Date: Created in 下午 22:40 2020/8/17 0024
 * @Modidied By: NO
 */
@Slf4j
@AllArgsConstructor
@Service("userService")
public class UserService extends VisionService<BbUser> {

    @Resource
    private BbUserMapper bbUserMapper;

    public List<BbUser> queryUserList() {
        return bbUserMapper.queryUserList();
    }

    public List<BbUser> queryShowUserList() {
        return bbUserMapper.queryShowUserList();
    }

    public Integer addUser(BbUser user) {
        return bbUserMapper.insertSelective(user);
    }

    public Integer updateUser(BbUser user) {
        return update(user);
    }

}
